﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StudentDetails.aspx.cs" Inherits="GridView的使用.StudentDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
    
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                                 width=600px>
                    <Fields>
                        <asp:BoundField HeaderText="学号" DataField="StudentID" />
                        <asp:BoundField HeaderText="姓名" DataField="Name"/>
                        <asp:BoundField HeaderText="性别" DataField="Gender"/>
                        <asp:BoundField HeaderText="出生日期" DataField="DayOfBirth"/>
                        <asp:BoundField HeaderText="地址" DataField="Address"/>
                        <asp:BoundField HeaderText="系" DataField="Department"/>
                        <asp:ImageField HeaderText="照片" DataImageUrlField="Photo" 
                                        DataImageUrlFormatString="images\{0}">
                        </asp:ImageField>
                    </Fields>
                </asp:DetailsView>
    
            </div>
        </form>
    </body>
</html>